package com.erp.fin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.fin.dao.BillingDao;
import com.erp.fin.domain.BillingDO;
import com.erp.fin.service.BillingService;



@Service
public class BillingServiceImpl implements BillingService {
	@Autowired
	private BillingDao billingDao;
	
	@Override
	public BillingDO get(Long id){
		return billingDao.get(id);
	}
	
	@Override
	public List<BillingDO> list(Map<String, Object> map){
		return billingDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return billingDao.count(map);
	}
	
	@Override
	public int save(BillingDO billing){
		return billingDao.save(billing);
	}
	
	@Override
	public int update(BillingDO billing){
		return billingDao.update(billing);
	}
	
	@Override
	public int remove(Long id){
		return billingDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return billingDao.batchRemove(ids);
	}

	@Override
	public int checkStatus(Long id){
		return billingDao.checkStatus(id);
	}
	@Override
	public int billingcheck(Long id){
		return billingDao.billingcheck(id);
	}

	@Override
	public List<BillingDO> getInvoiceByitm(Long itmid) {
		return billingDao.getInvoiceByitm(itmid);
	}
}
